//
//  SEGOldPGCListViewModel.m
//  SEGPlatform
//
//  Created by SEGI on 2020/12/3.
//

#import "SEGOldPGCListViewModel.h"

@implementation SEGOldPGCListViewModel
-(instancetype)init{
    if (self == [super init]) {
        _widgetWidth = [UIScreen mainScreen].bounds.size.width;
        _widgetHeight = kOldPGCListViewHeight;
        
        //(CGFloat top, CGFloat left, CGFloat bottom, CGFloat right)
        //SEGEnumOldPGCListViewType_OnlyWords = 5, /*PGC默认纯文本*/
        _marginOnlyWordsContentInset = UIEdgeInsetsMake(20, 15, 20, 15);
        _marginOnlyWordsPraiseInset = UIEdgeInsetsMake(10, 15, 20, 20);
        _marginOnlyWordsCommentInset = UIEdgeInsetsMake(10, 15, 20, 20);
        _marginOnlyWordsTimeInset = UIEdgeInsetsMake(10, -1, 20, 15);//-1 距离不固定
        
        //SEGEnumOldPGCListViewType_SingleSmallPic = 2, /*PGC单小图*/
        _SingleSmallPicPicturSize = CGSizeMake(196*0.5, 148*0.5);
        _marginSingleSmallPicPicturInset = UIEdgeInsetsMake(14, 20, 14, 15);
        _marginSingleSmallPicContentInset = UIEdgeInsetsMake(20, 15, 15, 20);
        _marginSingleSmallPicPraiseInset = UIEdgeInsetsMake(15, 15, 20, -1);
        _marginSingleSmallPicCommentInset = UIEdgeInsetsMake(15, 40, 20, -1);
        _marginSingleSmallPicTimeInset = UIEdgeInsetsMake(15, -1, 20, 20);
        
        //SEGEnumOldPGCListViewType_SingleBigPic = 3, /*PGC单大图*/
        _SingleBigPicPicturSize = CGSizeMake(345, 120);
        _marginSingleBigPicPictureInset = UIEdgeInsetsMake(10, 15, -1, 15);
        _marginSingleBigPicContentInset = UIEdgeInsetsMake(20, 15, 10, 15);
        _marginSingleBigPicPraiseInset = UIEdgeInsetsMake(10, 15, 20, -1);
        _marginSingleBigPicCommentInset = UIEdgeInsetsMake(10, 40, 20, -1);
        _marginSingleBigPicTimeInset = UIEdgeInsetsMake(10, -1, 20, 15);
        
        //SEGEnumOldPGCListViewType_SmallTPic = 1 /*PGC小三图*/
        _SmallTPicPicturSize = CGSizeMake(108,81.5);
        _marginSmallTPicPictureInset = UIEdgeInsetsMake(10, 15, 10, 15);
        _marginSmallTPicContentInset = UIEdgeInsetsMake(20, 15, 10, 15);
        _marginSmallTPicPraiseInset = UIEdgeInsetsMake(10, 15, 20, -1);
        _marginSmallTPicCommentInset = UIEdgeInsetsMake(10, 40, 20, -1);
        _marginSmallTPicTimeInset = UIEdgeInsetsMake(10, -1, 20, 15);

    }
    return self;
}
@end
